package com.serialcommunication.gui.frame;

import java.awt.Component;

import javax.swing.JFrame;

import com.serialcommunication.gui.Application;
import com.serialcommunication.interfaces.IBaseComponent;

public class BaseFrame extends JFrame {
	
	private Application appWindow;
	
	public BaseFrame(Application pWindow) {
		appWindow  = pWindow;
	}
	
	public void addComponent(IBaseComponent comp) {
		add(comp.getPanel());
	}

	public Application getAppWindow() {
		return appWindow;
	}

	public void setAppWindow(Application appWindow) {
		this.appWindow = appWindow;
	}
}
